<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <!-- <script src="http://localhost:8080"></script> -->
    <!-- 引入react核心库 -->
    <script type="text/javascript" src="../../js/react.development.js"></script>
    <!-- 用于支持react操作DOM -->
    <script type="text/javascript" src="../../js/react-dom.development.js"></script>
    <!-- 用于将jsx转为js -->
    <script type="text/javascript" src="../../js/babel.min.js"></script>
</head>
<body>
    <div id="title"></div>

    <script type="text/babel">
        // 创建函数式组件
        function MyComponent(){
            return <h2>函数式组件(简单组件)</h2>
        }
        ReactDOM.render(<MyComponent/>,document.getElementById("title"))
    </script>
</body>
<style>
</style>
</html>